import http from '@/common/http'

export const queryAll = (params) => {
  const url = `img/queryAll`
  return http.post(url,
    params
  )
}

export const addImg = (params) => {
  const url = `img`
  return http.post(url,
    params
  )
}

export const updateImgDetail = (params) => {
  const url = `img/updateImgDetail`
  return http.post(url,
    params
  )
}

export const updateImgUrl = (params) => {
  const url = `img/updateImgUrl`
  return http.post(url,
    params
  )
}

export const deleteImg = (params) => {
  const url = `img/${params}`
  return http.delete(url)
}
